package ru.compscicenter.databases.zaikina.common;

import ru.compscicenter.databases.zaikina.common.commands.*;

public interface ManagedObject {
    SysCommand process(SysCommand<?, ?> command);
    SysCommand process(DocumentsCommand command);
    SysCommand process(EmptyCommand command);
    SysCommand process(FullDocumentsCommand command);
    SysCommand process(FullWordsCommand command);
    SysCommand process(StringListCommand command);
    SysCommand process(WordsCommand command);
    ManagedObject clone();
    void commit();

    Integer getNodeId();
}
